package com.woniuxy.classdeans.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;


@Configuration
public class WebSocketConfig {
    //配置用于推送数据的对象
    @Bean//在IOC容器中创建一个对象，ServerEndpointExporter用于创建工具类中用到的RemoteEndpoint
    public ServerEndpointExporter endpointExporter() {
        return new ServerEndpointExporter();
    }
}
